home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / bumpmap < prev    next >
Text File  |  1995-11-08  |  818b  |  41 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Bump map example
  3. // File by Drew Wells
  4. // NOTE: Calls for "bumpmap_.gif", but any 320x200 gif will work.
  5.  
  6. #version 3.0
  7. global_settings { assumed_gamma 2.2 }
  8.  
  9. #include "colors.inc"
  10.  
  11. camera {
  12.    location  <0, 0, -120>
  13.    direction <0, 0,  1.5>
  14.    up        <0, 1,  0>
  15.    right   <4/3, 0,  0>
  16.    look_at   <0, 0,  0>
  17. }
  18.  
  19. sphere { <0, 0, 0>, 25
  20.    pigment {Blue}
  21.  
  22.    normal {
  23.       bump_map {
  24.          gif "bumpmap_.gif"
  25.          bump_size 5
  26.          interpolate 2
  27.          once
  28.       }
  29.       scale 50              /* scaled and translated into position  */
  30.       translate <-25, -25, 0>
  31.    }
  32.    finish {ambient 0.2 diffuse 0.7 specular 0.6}
  33. }
  34.  
  35. plane { y, -25
  36.    pigment {Gold}
  37.    finish {ambient 0.1 diffuse 0.5}
  38. }
  39.  
  40. light_source {<100,120,-130> colour White}
  41.